package com.yc.system.dto;

import com.yc.system.entity.Book;
import com.yc.system.entity.BookOrder;
import com.yc.system.entity.Store;
import com.yc.system.entity.User;
import com.yc.system.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.HashMap;
import java.util.List;

//获取issure全部信息
public class Issure extends HashMap<String, Object> {
//
//    @Autowired
//    private IStoreService iStoreService;
//    @Autowired
//    private IUserService iUserService;
//    @Autowired
//    private IBookService iBookService;
//    @Autowired
//    private IBookOrderService iBookOrderService;
//    @Autowired
//    private IBookCartLikeService iBookCartLikeService;

    public Issure() {
    }
    //    private User user;
//    private Store store;
//    private List<Book> bookList;
//    private List<BookOrder> bookOrderList;
//    private int count; //订单数
//    private int likeNum;  //收藏数量
//    private int goodNum; //好评数量

//    public  Issure getAllByUserId(int userId){
//        Issure issure=new Issure();
//        issure.put("userInfo", iUserService.getUserByUserId(userId));
//        issure.put("StoreInfo",iStoreService.getStoreByUserId(userId));
//        issure.put("bookList",iBookService.selectBooksByUserId(userId));
//        issure.put("bookOrderList",iBookOrderService.getOrderListByIssureId(userId));
//        issure.put("count",iBookOrderService.getCountByIssureId(userId));
//        issure.put("likeNum",iBookCartLikeService.getCountByIssureId(userId));
//        issure.put("goodNum",iBookOrderService.getGoodNumByIssureId(userId));

//        issure.put("StoreInfo",iStoreService.getStoreByUserId(userId));

//        return issure;
//    }
}
